$(window).ready(function(){
	$('#aDiv1').click(function(){
		$('#div1').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
	
	$('#aDiv2').click(function(){
		$('#div2').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
	
	$('#aDiv3').click(function(){
		$('#div3').attr('title',i18n.message.msg).dialog(dialogConfig);
	});	
	
	$('#aDiv4').click(function(){
		$('#div4').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
	
	$('#newBtnTab').click(function(){
		window.parent.TabTagUtils.newTab('tab_1','tab_1','pages/demo/single-table/demo_subject.jsp');
	});
				
	$('#closeBtnActiveTab').click(function(){
		window.parent.TabTagUtils.closeActiveTab();
	});
				
	$('#closeBtnActiveTabById').click(function(){
		window.parent.TabTagUtils.closeActiveTabById ("tab_1");
	});
				
	$('#closeAndNewBtnTab').click(function(){
		window.parent.TabTagUtils.closeAndNewTab  ('tab_1','tab_1','pages/demo/single-table/demo_subject.jsp');
	});
});